﻿namespace Common.Abstraction;

public interface IRepository<T, in TIdType>
{
    List<T> FindAll();

    Task<List<T>> FindAllAsync();
    
    T FindById(TIdType id);

    Task<T> SaveAsync(T entity);

    void Save(T entity);
}